import request from '@/utils/axios'
import {
    appUrl
} from '@/utils/env'

export function getExerciseList(data) {
    return request({
        url: appUrl + '/exercise/list',
        method: 'post',
        data
    })
}

export function addExercise(data) {
    return request({
        url: appUrl + '/exercise/create',
        method: 'post',
        data
    })
}

export function getExerciseInfo(data) {
    return request({
        url: appUrl + '/exercise/info',
        method: 'post',
        data
    })
}

export function deleteExercise(data) {
    return request({
        url: appUrl + '/exercise/delete',
        method: 'post',
        data
    })
}
